import random

# 产生10个数
target = []
for i in range(10):
    target.append(random.randrange(0, 100))
print(target, "\n")

# find the max number
idx = 0
max = target[idx]
for i in range(len(target)):
    if target[i] > max:
        idx = i
        max = target[i]

print(f"The max number is target[{idx}]={max}")